<div class="panel panel-default panel-intro">
    <link rel="stylesheet" href="http://layui.hcwl520.com.cn/layui/css/layui.css?v=201801090202">
    {:build_heading()}
    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="one">
                <div class="widget-body no-padding">
                    <div id="toolbar" class="toolbar">
                        {:build_toolbar('refresh')}
                    </div>

                    <style>
                        .table th{
                            text-align: center;
                        }
                        .table td{
                            text-align: center;
                        }
                    </style>

                    <!--表格开始-->
                    <div class="table-responsive">
                        <table class="table  table-bordered table-hover" style="width: 60%;">
                            <thead>
                            <tr>
                                <th>用户总数</th>
                                <th>跑男总数</th>
                                <th>订单总数</th>
                                <th>后台派单数</th>
                                <th>拒单总数</th>
                                <th>消单总数</th>
                                <th>配送员上线率（今日）</th>
                            </tr>
                            </thead>
                            <tbody>
                            {if condition="$count eq 0"}
                            <tr class="text-c"><td colspan="14">暂无相关数据</td></tr>
                            {else/}
                            <tr>
                                <td>{$user_total}</td>
                                <td>{$runman_total}</td>
                                <td>{$order_total}</td>
                                <td>{$admin_order_total}</td>
                                <td>{$refuse_order_total}</td>
                                <td>{$cancel_order_total}</td>
                                <td>{$percent_online}</td>
                            </tr>
                            {/if}
                            </tbody>
                        </table>
                    </div>
                    <div class="table-responsive">
                        <table class="table  table-bordered table-hover" style="width: 30%;">
                            <caption style="text-align: center;">前十五跑男收入排行(降序)</caption>
                            <thead>
                            <tr>
                                <th>跑男姓名</th>
                                <th>总收入（降序）</th>
                            </tr>
                            </thead>
                            <tbody>
                            {if condition="$count eq 0"}
                            <tr class="text-c"><td colspan="14">暂无相关数据</td></tr>
                            {else/}
                            {foreach name="runman_income" item="vo"}
                            <tr>
                                <td>{$vo.truename}</td>
                                <td>￥{$vo.income}</td>
                            </tr>
                            {/foreach}
                            {/if}
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>